package com.wuxin.ssm.service.impl;


import com.wuxin.ssm.entity.ProductType;
import com.wuxin.ssm.entity.ProductTypeExample;
import com.wuxin.ssm.mapper.ProductTypeMapper;
import com.wuxin.ssm.service.ProductTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: untitled
 * @ClassName ProductTypeService
 * @description:
 * @author: 李尧坤
 * @create: 2024−12-03 19:24
 * @Version 1.0
 **/
@Service
public class ProductTypeServiceImpl implements ProductTypeService {

    @Autowired
    private ProductTypeMapper productTypeMapper;

    @Override
    public List<ProductType> getAll() {

        List<ProductType> productTypesList = productTypeMapper.selectByExample(new ProductTypeExample());
        return productTypesList;
    }

}
